export const TokenKey = 'ltoken'
export const CommonApiPrefix = '/agency'

export const MenuListIconsMap = new Map([
    ['clue', 'move_to_inbox'],
    ['clueManage', 'list'],
    ['departmentStatistics', 'map'],
    ['orderRank', 'table_chart'],
    ['userManage', 'person'],
    ['departmentManage', 'streetview'],
])

export const MenuListIconsMap_Parent = new Map([
    ['0', { icon: 'map', label: '线索管理' }],
    ['1', { icon: 'insert_chart', label: '数据统计' }],
    ['2', { icon: 'pages', label: '系统管理' }],
])

interface SortOrderMapProps {
    ascending: string;
    asc: string;
    descending: string;
    desc: string;
}

export const SortOrderMap: SortOrderMapProps = {
    'ascending': 'asc',
    'asc': 'ascending',
    'descending': 'desc',
    'desc': 'descending',
}